x86emul: re-order cases of main switch statement
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 14:27:33 +0000 (16:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 14:27:33 +0000 (16:27 +0200)
commit265dabbc6f77982a8f2fdbae77353b70507e4e48
treec73d399c49dd9064a115cc31ebed6430135b0a2e
parent2fe43d333f692212bd948cf78ee731539248a35f
x86emul: re-order cases of main switch statement

Re-store intended numerical ordering, which has become "violated"
mostly by incremental additions where moving around bigger chunks did
not seem advisable. One exception though at the very top of the
switch(): Keeping the arithmetic ops together seems preferable over
entirely strict ordering.

Additionally move a few macro definitions before their first uses (the
placement is benign as long as those uses are themselves only macro
definitions, but that's going to change when those macros have helpers
broken out).

No (intended) functional change.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c